/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c) 2002, GeoVISTA Center
 * Licensed under Simplified BSD License
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 * @original author: jin Chen 
 * @author: jin Chen 
 * @date: Dec 23, 2006$
 * @version: 1.0
 */
package edu.psu.geovista.app.dataloader.v1.config.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("Var")
public class Variable {
    protected String name;
    protected String description;

    public Variable(String name) {
        this.setName(name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public boolean equals(Object obj){
        Variable var = (Variable) obj;
        return name.equals(var.getName());
    }
     public int hashCode() {
        return this.getName().hashCode() ;
     }
}
